from PipeDataProcess import PipeUtil
import Config as conf

# test for newsfeed
newsfeedRootPath = conf.ROOT_DATA_FILE_PATH + 'contest_dataset_newsfeed/'
shoppingRootPath = conf.ROOT_DATA_FILE_PATH + 'contest_dataset_shopping/'

clickTime = '011400'
userId = '4303460'

# news feed data
newsfeed = PipeUtil(newsfeedRootPath)
print(newsfeed.vector(userId, clickTime))
print(newsfeed.vector(userId, clickTime))

# shopping data
clickTime = '080850'
userId = '3279873'

shopping = PipeUtil(shoppingRootPath)
print(shopping.vector(userId, clickTime))
print(shopping.vector(userId, clickTime))
